﻿using System;

namespace sy3_1 
{
    public class Circle
    {
        private double x;
        private double y;
        private double r;

        public void SetValue(double x, double y, double r)
        {
            this.x = x;
            this.y = y;
            this.r = r;
        }

        public double GetArea()
        {
            return Math.Round(Math.PI * r * r, 2);
        }

        public double GetPerimeter()
        {
            return Math.Round(2 * Math.PI * r, 2);
        }

        public double GetDistance()
        {
            return Math.Round(Math.Sqrt(x * x + y * y), 2);
        }
    }
}